import pymongo

mongo_client = pymongo.MongoClient(host='localhost',port=
27017)

db = mongo_client.workflow

table = db.workcate

res = table.find_one({'tid':4})

print(res)





